package com.permissions.dispatcher.processor.exception;

import com.permissions.dispatcher.processor.util.Extensions;

import javax.lang.model.element.ExecutableElement;

/**
 * 私有方法异常
 */
public class PrivateMethodException extends RuntimeException {
    /**
     * 私有方法异常
     */
    public PrivateMethodException(ExecutableElement ecutableElement, Class<?> annotationType) {
        super(
                "Method '"
                        + Extensions.simpleString(ecutableElement)
                        + "()' annotated with '"
                        + annotationType.getSimpleName()
                        + "' must not be private");
    }
}
